﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lazy
{
    public partial class lazy01 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                TextBox1.Text = "请输入新闻内容";
            }
            Label4.Text = "发布时间："+ DateTime.Now.ToString();
        }
        protected void Content(object sender, EventArgs e) 
        {
            if (TextBox1.Text == null)
            {
                Label3.Text = "请输入新闻内容";
            }
            else { Label3.Text = "此新闻来自" + DropDownList1.Text + "谢谢您提交的新闻"; }
        }

        protected void restet1_Click(object sender, EventArgs e)
        {
            TextBox1.Text = "";
            DropDownList1.Text = "人民日报社";
            Label3.Text = "";
        }
    }
}